﻿@{
    var attributes = new Dictionary<string, object>();

    attributes.Add("type", "time");
    attributes.Add("class", "text-box single-line");

    if (ViewData.ModelMetadata.IsRequired)
    {
        attributes.Add("required", "required");
    }
}
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, attributes)